package com.sharecar.request;

import com.android.sharecar.model.User;

/**
 * This class encapsulates the client's request to UserService.
 * @author xinyan
 *
 */
public class UserRequest extends Request {
	private static final long serialVersionUID = 10L;

	public static final int INSERT_A_USER = 1;
	public static final int SELECT_A_USER = 2;
	public static final int UPDATE_A_USER = 3;
	public static final int DELETE_A_USER = 4;

	// check email whether it already exist
	public static final int CHECK_EMAIL = 5;

	private User user;
	private int userId;

	public UserRequest(int type) {
		this.requestType = type;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}
}
